package com.example.demo.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@TableName("dynasty")
@Data
public class Dynasty {
    @TableId(type = IdType.AUTO)
    private Integer dynastyid;
    private String  dynastyname;

    public Dynasty() {
    }

    public Dynasty(Integer dynastyid, String dynastyname) {
        this.dynastyid = dynastyid;
        this.dynastyname = dynastyname;
    }

    public Integer getDynastyid() {
        return dynastyid;
    }

    public void setDynastyid(Integer dynastyid) {
        this.dynastyid = dynastyid;
    }

    public String getDynastyname() {
        return dynastyname;
    }

    public void setDynastyname(String dynastyname) {
        this.dynastyname = dynastyname;
    }
}

